<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Dinner.Models.Menu>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Upcoming Dinners
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Upcoming Dinners</h2>

    <ul>

	<% foreach (var dinner in Model) { %>
		<li>
		<%= Html.ActionLink(dinner.date.ToLongDateString(), "Details",
			new { id = dinner.menu_id }) %>
		</li>
	<% } %>

    </ul>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

